package day03;

public class IfElseIfDemo {
    public static void main(String[] args) {
        /*
        if(boolean1){
            语句块1
        }else if (boolean2){
            语句块2
        }else if (boolean3){
            语句块3
        }else {
            语句块4
        }
        */
        double price = 800.0;
        if(price>1000){
            price*=0.5;
        }else if (price>700){
            price*=0.7;
        }else if (price>300){
            price*=0.8;
        }else {
            price*=0.9;
        }
        System.out.println("最终的价格为"+price);
    }
}
